package org.example.controller;

import org.example.entity.Contents;
import org.example.service.ContentsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author ljh
 * @version 1.0
 * @Description
 * @date 2025/7/25 09:45
 */
@RestController
public class ContentsController {
    @Autowired
    private ContentsService contentsService;
    //查询全部
    @GetMapping("/contentsList")
    public List<Contents> getAllContents(){
        return contentsService.getAllContents();
    }


}
